package br.edu.unifei.cct720.alieninvasion.events;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import br.edu.unifei.cct720.alieninvasion.patterns.Command;

/**
 * Class responsible for handle GUI components events
 * 
 * @author Felipe Knappe
 *
 */
public class MyActionListener implements ActionListener {

	/**
	 * Method responsible for execute a call
	 * to handle component event properly
	 * 
	 */
	@Override
	public void actionPerformed(ActionEvent e) {
		Command cmd = (Command)e.getSource();
		cmd.execute();
	}
}
